﻿
using System;
using System.ComponentModel;
using Project.Common;

namespace Project.Model
{
    [Serializable]
    public partial class UserInfo
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [DataObjectField(true, true, false)]
        public int UserInfoId { get; set; }
        /// <summary>
        /// 用户姓名
        /// </summary>
        [DataObjectField(false, false, false, 32)]
        public string UserName { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        [DataObjectField(false, false, false)]
        public int Age { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [DataObjectField(false, false, false)]
        public int Gender { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [DataObjectField(false, false, true, 64)]
        public string Address { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [DataObjectField(false, false, true)]
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [DataObjectField(false, false, true, 11)]
        public string Phone { get; set; }

        /// <summary>
        /// 登陆信息Id
        /// </summary>
        [DataObjectField(false, false, true)]
        public int EmployeeId { get; set; }

        /// <summary>
        /// 权限Id
        /// </summary>
        [DataObjectField(false, false, true)]
        public int ActionInfoId { get; set; }

        /*下面的是关联类，查询的时候需要用到
         * 并且上面必须加上下面的Id
         * 暂时先将关联的类Id放进来，以后想办法改善
         */

        /// <summary>
        /// 登陆信息
        /// </summary>
        public Employee Employee { get; set; }
        /// <summary>
        /// 权限
        /// </summary>
        public ActionInfo ActionInfo { get; set; }

    }
}
